﻿using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

namespace Studio
{
	// Token: 0x0200050E RID: 1294
	public class CheckScene : MonoBehaviour
	{
		// Token: 0x06002103 RID: 8451 RVA: 0x000CB4A4 File Offset: 0x000C96A4
		private void Awake()
		{
			this.timeScale = Time.timeScale;
			Time.timeScale = 0f;
		}

		// Token: 0x06002104 RID: 8452 RVA: 0x000CB4BC File Offset: 0x000C96BC
		private void Start()
		{
			this.back.sprite = CheckScene.sprite;
			this.buttonYes.addOnClick = CheckScene.unityActionYes;
			this.buttonNo.addOnClick = CheckScene.unityActionNo;
		}

		// Token: 0x06002105 RID: 8453 RVA: 0x000CB4F0 File Offset: 0x000C96F0
		private void OnDestroy()
		{
			Time.timeScale = this.timeScale;
		}

		// Token: 0x0400228D RID: 8845
		[SerializeField]
		private Image back;

		// Token: 0x0400228E RID: 8846
		[SerializeField]
		private VoiceNode buttonYes;

		// Token: 0x0400228F RID: 8847
		[SerializeField]
		private VoiceNode buttonNo;

		// Token: 0x04002290 RID: 8848
		private float timeScale = 1f;

		// Token: 0x04002291 RID: 8849
		public static Sprite sprite;

		// Token: 0x04002292 RID: 8850
		public static UnityAction unityActionYes;

		// Token: 0x04002293 RID: 8851
		public static UnityAction unityActionNo;
	}
}
